//API 进行统一管理
import requests from "./ajax";
import mockRequests from './mockAjax'

//三级联动接口
// /api/product/getBaseCategoryList   get  无参数
// 发请求:axios 发请求返回的结果是Promise对象
export const reqgetCategoryList = () => requests.get('/product/getBaseCategoryList');


//获取banner
export const reqGetBannerList = () => mockRequests.get('/banner')

// 获取floor数据
export const reqFloorList = () => mockRequests.get('/floor')

// 获取搜索模块数据
// 当前这个接口，给服务器传递参数params，至少是一个空对象
export const reqGetSearchInfo = (params) => requests({ url: "/list", method: "post", data: params })